home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / prpbrwse / form1.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1998-11-05  |  13.5 KB  |  448 lines

  1. VERSION 5.00
  2. Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
  3. Object = "{B28ED930-882C-11D1-BD80-006097BF0C2D}#1.0#0"; "ACTIVE~1.OCX"
  4. Begin VB.Form Form1 
  5.    Caption         =   "Property Browser Control Demo"
  6.    ClientHeight    =   6075
  7.    ClientLeft      =   60
  8.    ClientTop       =   345
  9.    ClientWidth     =   9675
  10.    Icon            =   "Form1.frx":0000
  11.    LinkTopic       =   "Form1"
  12.    ScaleHeight     =   6075
  13.    ScaleWidth      =   9675
  14.    StartUpPosition =   3  'Windows Default
  15.    Begin VB.CommandButton Command1 
  16.       Caption         =   "Add Custom Property"
  17.       Height          =   375
  18.       Left            =   240
  19.       TabIndex        =   32
  20.       Top             =   4920
  21.       Width           =   1695
  22.    End
  23.    Begin VB.TextBox TextAddLabel 
  24.       Height          =   315
  25.       Left            =   240
  26.       TabIndex        =   31
  27.       Text            =   "CustomProperty"
  28.       Top             =   5400
  29.       Width           =   1695
  30.    End
  31.    Begin VB.CommandButton CommandPages 
  32.       Caption         =   "Show Property Pages"
  33.       Height          =   375
  34.       Left            =   240
  35.       TabIndex        =   22
  36.       Top             =   4320
  37.       Width           =   1695
  38.    End
  39.    Begin VB.CommandButton CommandFilterClear 
  40.       Caption         =   "Clear"
  41.       Height          =   255
  42.       Left            =   1440
  43.       TabIndex        =   21
  44.       Top             =   3600
  45.       Width           =   495
  46.    End
  47.    Begin VB.CommandButton CommandFilterShow 
  48.       Caption         =   "Show"
  49.       Height          =   255
  50.       Left            =   240
  51.       TabIndex        =   20
  52.       Top             =   3600
  53.       Width           =   615
  54.    End
  55.    Begin ACTIVEPROPLib.ActiveProp AP 
  56.       Height          =   4695
  57.       Left            =   6120
  58.       TabIndex        =   13
  59.       Top             =   1200
  60.       Width           =   3375
  61.       _Version        =   65536
  62.       _ExtentX        =   5953
  63.       _ExtentY        =   8281
  64.       _StockProps     =   233
  65.       GridColor       =   -2147483633
  66.       BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  67.          Name            =   "MS Sans Serif"
  68.          Size            =   8.25
  69.          Charset         =   0
  70.          Weight          =   400
  71.          Underline       =   0   'False
  72.          Italic          =   0   'False
  73.          Strikethrough   =   0   'False
  74.       EndProperty
  75.    End
  76.    Begin VB.CommandButton CommandSelf 
  77.       Caption         =   "Control Itself -->"
  78.       Height          =   375
  79.       Left            =   4440
  80.       TabIndex        =   7
  81.       Top             =   1920
  82.       Width           =   1455
  83.    End
  84.    Begin VB.CommandButton CommandCreate 
  85.       Caption         =   "<-- Any Object"
  86.       Height          =   375
  87.       Left            =   4440
  88.       TabIndex        =   6
  89.       Top             =   2880
  90.       Width           =   1455
  91.    End
  92.    Begin VB.TextBox CustomClass 
  93.       Height          =   375
  94.       Left            =   2400
  95.       TabIndex        =   5
  96.       Text            =   "Word.Document"
  97.       Top             =   2880
  98.       Width           =   1935
  99.    End
  100.    Begin VB.CommandButton CommandWeb 
  101.       Caption         =   "Black Hilite"
  102.       Height          =   375
  103.       Left            =   240
  104.       TabIndex        =   4
  105.       Top             =   2400
  106.       Width           =   1695
  107.    End
  108.    Begin VB.CommandButton CommandVB 
  109.       Caption         =   "Visual Basic"
  110.       Height          =   375
  111.       Left            =   240
  112.       TabIndex        =   3
  113.       Top             =   1920
  114.       Width           =   1695
  115.    End
  116.    Begin VB.Frame Frame1 
  117.       Caption         =   "Apply Example Styles"
  118.       Height          =   1695
  119.       Left            =   120
  120.       TabIndex        =   1
  121.       Top             =   1200
  122.       Width           =   1935
  123.       Begin VB.CommandButton CommandAccess 
  124.          Caption         =   "Microsoft Access"
  125.          Height          =   375
  126.          Left            =   120
  127.          TabIndex        =   2
  128.          Top             =   240
  129.          Width           =   1695
  130.       End
  131.    End
  132.    Begin VB.Frame Frame2 
  133.       Caption         =   "Object to Browse"
  134.       Height          =   2175
  135.       Left            =   2280
  136.       TabIndex        =   8
  137.       Top             =   1200
  138.       Width           =   3735
  139.       Begin VB.CommandButton CommandNone 
  140.          Caption         =   "None"
  141.          Height          =   375
  142.          Left            =   2160
  143.          TabIndex        =   11
  144.          Top             =   1200
  145.          Width           =   1455
  146.       End
  147.       Begin VB.CommandButton CommandFlex 
  148.          Caption         =   "<-- Grid Control"
  149.          Height          =   375
  150.          Left            =   2160
  151.          TabIndex        =   10
  152.          Top             =   240
  153.          Width           =   1455
  154.       End
  155.       Begin MSFlexGridLib.MSFlexGrid MSFlexGrid1 
  156.          Height          =   1335
  157.          Left            =   120
  158.          TabIndex        =   9
  159.          Top             =   240
  160.          Width           =   1935
  161.          _ExtentX        =   3413
  162.          _ExtentY        =   2355
  163.          _Version        =   393216
  164.       End
  165.    End
  166.    Begin VB.Frame Frame5 
  167.       Caption         =   "Custom"
  168.       Height          =   1815
  169.       Left            =   120
  170.       TabIndex        =   37
  171.       Top             =   4080
  172.       Width           =   1935
  173.    End
  174.    Begin VB.Frame Frame3 
  175.       Caption         =   "Filtering"
  176.       Height          =   975
  177.       Left            =   120
  178.       TabIndex        =   17
  179.       Top             =   3000
  180.       Width           =   1935
  181.       Begin VB.CommandButton CommandFilterHide 
  182.          Caption         =   "Hide"
  183.          Height          =   255
  184.          Left            =   720
  185.          TabIndex        =   19
  186.          Top             =   600
  187.          Width           =   495
  188.       End
  189.       Begin VB.TextBox TextFilter 
  190.          Height          =   285
  191.          Left            =   120
  192.          TabIndex        =   18
  193.          Top             =   240
  194.          Width           =   1695
  195.       End
  196.    End
  197.    Begin VB.TextBox Text2 
  198.       Height          =   315
  199.       Left            =   3360
  200.       MultiLine       =   -1  'True
  201.       TabIndex        =   15
  202.       Text            =   "Form1.frx":030A
  203.       Top             =   3720
  204.       Width           =   2520
  205.    End
  206.    Begin VB.TextBox Text1 
  207.       Height          =   315
  208.       Left            =   3360
  209.       Locked          =   -1  'True
  210.       MultiLine       =   -1  'True
  211.       TabIndex        =   14
  212.       Text            =   "Form1.frx":031A
  213.       Top             =   4080
  214.       Width           =   2535
  215.    End
  216.    Begin VB.TextBox Text3 
  217.       Height          =   315
  218.       Left            =   3360
  219.       MultiLine       =   -1  'True
  220.       TabIndex        =   16
  221.       Text            =   "Form1.frx":032A
  222.       Top             =   4440
  223.       Width           =   2535
  224.    End
  225.    Begin VB.TextBox TextColor 
  226.       Height          =   285
  227.       Left            =   3360
  228.       TabIndex        =   34
  229.       Text            =   "255"
  230.       Top             =   5520
  231.       Width           =   2055
  232.    End
  233.    Begin VB.Frame Frame4 
  234.       Caption         =   "Selected Property Details"
  235.       Height          =   2415
  236.       Left            =   2280
  237.       TabIndex        =   23
  238.       Top             =   3480
  239.       Width           =   3735
  240.       Begin VB.CommandButton CommandColor 
  241.          Caption         =   ">>"
  242.          Height          =   255
  243.          Left            =   3240
  244.          TabIndex        =   35
  245.          Top             =   2040
  246.          Width           =   375
  247.       End
  248.       Begin VB.CommandButton CommandData 
  249.          Caption         =   ">>"
  250.          Height          =   255
  251.          Left            =   3240
  252.          TabIndex        =   33
  253.          Top             =   1680
  254.          Width           =   375
  255.       End
  256.       Begin VB.TextBox TextType 
  257.          Height          =   315
  258.          Left            =   1080
  259.          TabIndex        =   27
  260.          Text            =   "Type"
  261.          Top             =   1320
  262.          Width           =   2535
  263.       End
  264.       Begin VB.TextBox TextData 
  265.          Height          =   315
  266.          Left            =   1080
  267.          TabIndex        =   29
  268.          Text            =   "Data"
  269.          Top             =   1680
  270.          Width           =   2055
  271.       End
  272.       Begin VB.Label Label8 
  273.          Caption         =   "Color:"
  274.          Height          =   255
  275.          Left            =   120
  276.          TabIndex        =   36
  277.          Top             =   2040
  278.          Width           =   735
  279.       End
  280.       Begin VB.Label Label7 
  281.          Caption         =   "Data:"
  282.          Height          =   255
  283.          Left            =   120
  284.          TabIndex        =   30
  285.          Top             =   1680
  286.          Width           =   735
  287.       End
  288.       Begin VB.Label Label6 
  289.          Caption         =   "Type:"
  290.          Height          =   255
  291.          Left            =   120
  292.          TabIndex        =   28
  293.          Top             =   1320
  294.          Width           =   855
  295.       End
  296.       Begin VB.Label Label5 
  297.          Caption         =   "Value:"
  298.          Height          =   255
  299.          Left            =   120
  300.          TabIndex        =   26
  301.          Top             =   960
  302.          Width           =   1095
  303.       End
  304.       Begin VB.Label Label4 
  305.          Caption         =   "Description:"
  306.          Height          =   255
  307.          Left            =   120
  308.          TabIndex        =   25
  309.          Top             =   600
  310.          Width           =   975
  311.       End
  312.       Begin VB.Label Label3 
  313.          Caption         =   "Name:"
  314.          Height          =   255
  315.          Left            =   120
  316.          TabIndex        =   24
  317.          Top             =   240
  318.          Width           =   615
  319.       End
  320.    End
  321.    Begin VB.Label Label2 
  322.       Caption         =   "Order a full working copy today at http://www.leadingchange.com/activex"
  323.       Height          =   255
  324.       Left            =   120
  325.       TabIndex        =   12
  326.       Top             =   720
  327.       Width           =   7335
  328.    End
  329.    Begin VB.Label Label1 
  330.       Caption         =   $"Form1.frx":0332
  331.       Height          =   495
  332.       Left            =   120
  333.       TabIndex        =   0
  334.       Top             =   120
  335.       Width           =   9375
  336.    End
  337. Attribute VB_Name = "Form1"
  338. Attribute VB_GlobalNameSpace = False
  339. Attribute VB_Creatable = False
  340. Attribute VB_PredeclaredId = True
  341. Attribute VB_Exposed = False
  342. Private Sub AP_SelChange()
  343. Text1 = AP.CurrentDocumentation
  344. Text2 = AP.CurrentProperty
  345. Text3 = AP.CurrentValue
  346. TextType = AP.CurrentPropertyType
  347. TextData = AP.CurrentPropertyData
  348. TextColor = AP.CurrentLabelColor
  349. End Sub
  350. Private Sub Command2_Click()
  351. AP.FilterMode = FilterShowOnly
  352. AP.FilterItems = 1
  353. End Sub
  354. Private Sub Command1_Click()
  355. AP.AddProperty TextAddLabel.Text, "", StyleEdit
  356. End Sub
  357. Private Sub CommandAccess_Click()
  358. AP.LabelBackColor = vb3DFace
  359. AP.ValueBackColor = vbWindowBackground
  360. AP.SelectedBackColor = vb3DFace
  361. AP.SelectedForeColor = vbWindowText
  362. AP.GridColor = vb3DFace
  363. AP.BackColor = vb3DFace
  364. AP.ForeColor = vbWindowText
  365. AP.Appearance = AppearanceFlat
  366. AP.HoverMode = False
  367. AP.DotsAfterLabels = True
  368. AP.SpacesInLabels = True
  369. End Sub
  370. Private Sub CommandColor_Click()
  371. AP.CurrentLabelColor = TextColor
  372. End Sub
  373. Private Sub CommandCreate_Click()
  374. On Error GoTo Catch
  375. Form1.MousePointer = vbHourglass
  376. Set AP.LinkObject = CreateObject(CustomClass)
  377. Form1.MousePointer = vbDefault
  378. Exit Sub
  379. Catch:
  380.     MsgBox "Object not found.", vbInformation, "Property Browser Demo"
  381.     Form1.MousePointer = vbDefault
  382. End Sub
  383. Private Sub CommandData_Click()
  384. AP.CurrentPropertyData = TextData
  385. End Sub
  386. Private Sub CommandFilterClear_Click()
  387. AP.FilterMode = FilterNone
  388. End Sub
  389. Private Sub CommandFilterHide_Click()
  390. AP.FilterMode = FilterHideOnly
  391. AP.FilterItems = TextFilter
  392. End Sub
  393. Private Sub CommandFilterShow_Click()
  394. AP.FilterMode = FilterShowOnly
  395. AP.FilterItems = TextFilter
  396. End Sub
  397. Private Sub CommandFlex_Click()
  398. Set AP.LinkObject = MSFlexGrid1.Object
  399. End Sub
  400. Private Sub CommandNone_Click()
  401. Set AP.LinkObject = Nothing
  402. End Sub
  403. Private Sub CommandPages_Click()
  404. AP.ShowPropertyPages
  405. End Sub
  406. Private Sub CommandSelf_Click()
  407. Set AP.LinkObject = AP.Object
  408. End Sub
  409. Private Sub CommandVB_Click()
  410. AP.LabelBackColor = vbWindowBackground
  411. AP.SelectedBackColor = vbHighlight
  412. AP.SelectedForeColor = vbHighlightText
  413. AP.ValueBackColor = vbWindowBackground
  414. AP.GridColor = vb3DFace
  415. AP.ForeColor = vbWindowText
  416. AP.BackColor = vbWindowBackground
  417. AP.Appearance = Appearance3D
  418. AP.HoverMode = False
  419. AP.DotsAfterLabels = False
  420. AP.SpacesInLabels = False
  421. End Sub
  422. Private Sub CommandWeb_Click()
  423. AP.Appearance = AppearanceFlat
  424. AP.HoverMode = True
  425. AP.SelectedForeColor = RGB(255, 255, 255)
  426. AP.ForeColor = RGB(192, 192, 192)
  427. AP.BackColor = RGB(0, 0, 0)
  428. AP.GridColor = RGB(0, 0, 0)
  429. AP.ValueBackColor = RGB(0, 0, 0)
  430. AP.LabelBackColor = RGB(0, 0, 0)
  431. AP.SelectedBackColor = RGB(0, 0, 0)
  432. AP.DotsAfterLabels = True
  433. AP.SpacesInLabels = True
  434. End Sub
  435. Private Sub Form_Resize()
  436. AP.Width = (Form1.Width - AP.Left - 250)
  437. AP.Height = (Form1.Height - AP.Top - 500)
  438. End Sub
  439. Private Sub Text2_Change()
  440. AP.CurrentProperty = Text2.Text
  441. End Sub
  442. Private Sub Text3_Change()
  443. AP.CurrentValue = Text3.Text
  444. End Sub
  445. Private Sub Text3_KeyUp(KeyCode As Integer, Shift As Integer)
  446. AP.CurrentValue = Text3.Text
  447. End Sub
  448.